Skip to content

feat(Computability/Languages): languages matching regular expressions are regular#720

Merged
chenson2018 merged 11 commits into
leanprover:mainfrom
chiyunhsu:RegexIsRegular
Jul 16, 2026
Merged

feat(Computability/Languages): languages matching regular expressions are regular#720
chenson2018 merged 11 commits into
leanprover:mainfrom
chiyunhsu:RegexIsRegular

Conversation

@chiyunhsu

Copy link
Copy Markdown
Contributor

Prove languages matching regular expressions are regular in IsRegular.regex.
The proof uses existing theorems IsRegular.add, IsRegular.mul, and IsRegular.kstar.
Prove remaining key ingredient that the language containing only the one character string is regular in IsRegular.char.

Implemented collaboratively by Brooke Gill and Chi-Yun Hsu

@chiyunhsu chiyunhsu changed the title feat (Computability/Languages): languages matching regular expressions are regular feat(Computability/Languages): languages matching regular expressions are regular Jul 14, 2026

@ctchou ctchou left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did some golfing for you. Could you cherry-pick the following commit and put it on top of your branch? I was not able to push to your branch.

bc9f486

@chiyunhsu
chiyunhsu requested a review from ctchou July 15, 2026 01:30

@ctchou ctchou left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Comment thread Cslib/Computability/Languages/RegularLanguage.lean Outdated
@chiyunhsu
chiyunhsu requested a review from chenson2018 July 16, 2026 03:26

@chenson2018 chenson2018 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@chenson2018
chenson2018 enabled auto-merge July 16, 2026 03:27
@chenson2018
chenson2018 added this pull request to the merge queue Jul 16, 2026
Merged via the queue into leanprover:main with commit 41fdae6 Jul 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants